﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Users {

    /// <summary>
    /// This interface is used for Web Admin to manage user family profile
    /// </summary>
    public interface IUserFamilyProfileAdmin {

        /// <summary>
        /// Inserts the UserFamilyProfileEnt item.
        /// </summary>
        /// <param name="item">The UserFamilyProfileEnt item.</param>
        /// <returns>
        /// Return true if success, otherwise return false
        /// </returns>
        bool Insert(UserFamilyProfileEnt item);

        /// <summary>
        /// Updates the UserFamilyProfileEnt item.
        /// </summary>
        /// <param name="item">The UserFamilyProfileEnt item.</param>
        /// <returns>
        /// Return true if success, otherwise return false
        /// </returns>
        bool Update(UserFamilyProfileEnt item);

        /// <summary>
        /// Gets the by user key.
        /// </summary>
        /// <param name="userKey">The user key.</param>
        /// <returns>Return UserFamilyProfileEnt if exists, otherwise return null</returns>
        UserFamilyProfileEnt GetByUserKey(string userKey);
    }
}
